package com.aaa.order.service.impl;/**
 * Date:2023/3/7
 * Author：臣哥哥
 * Description:
 */

import com.aaa.entity.CarComment;
import com.aaa.order.dao.CarCommentDao;
import com.aaa.order.service.CarCommentService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author     ：Xiaochen
 * @date       ：Created in 2023/3/7 16:23
 * @description：
 * @modified By：
 * @version:
 */
@Service
public class CarCommentServiceImpl implements CarCommentService {
    @Autowired
    private CarCommentDao carCommentDao;
    @Override
    public Result insertCarComment(CarComment carComment) {
        carComment.setAddtime(new Date());
        int insert = carCommentDao.insert(carComment);
        return new Result(2000,"成功",insert);
    }
}